import http from "@/http/index.ts"
import {ProductConfig} from "@/api/productConfig/type.ts";

// 获取上级产品配置
export const getParentApi = () => {
    return http.get("/productConfig/getParent")
}

// 新增产品配置
export const addApi = (data: ProductConfig) => {
    return http.post("/productConfig/createProductConfig", data)
}

// 列表产品配置
export const getListApi = ()=>{
    return http.get("/productConfig/list")
}

// 修改产品配置
export const editApi = (data: ProductConfig) => {
    return http.put("/productConfig/updateProductConfig", data)
}

// 删除产品配置
export const deleteApi = (ProductConfigId: number) => {
    return http.delete(`/productConfig/deleteProductConfig/${ProductConfigId}`)
}


